#ifndef SCREENBOX_H
#define SCREENBOX_H

#include "screenboxgrabber.h"

class ScreenBox
{
 public :
  ScreenBox();
  ~ScreenBox();

  bool grabsMouse();

  bool isValid();

  QList<ScreenBoxObject> screenboxes();

  void clear();
  void add(ScreenBoxObject);
  void setScreenBox(QList<ScreenBoxObject>);

  void draw(QGLViewer*);

  bool keyPressEvent(QKeyEvent*);

 private :
  QList<ScreenBoxGrabber*> m_screenboxes;

  void processCommand(int, QString);
};

#endif
